package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type GetTopChatRequest struct {
	ActivityId *int64 `json:"ActivityId"`
}
type GetTopChatResponse struct {
	Data []ChatData `json:"Data" gorm:"column:Data"`
}

func (instance *Instance) GetTopChat(data *GetTopChatRequest) (*GetTopChatResponse, error) {
	d := request.Data{
		Action: "GetTopChatAPI",
	}
	bindQuery(&d, *data)
	var res GetTopChatResponse
	err := instance.get(&d, &res)
	return &res, err
}
